<template>
  <div>
    <my-slot-cpn>
      <button>我是按钮</button>
    </my-slot-cpn>

    <my-slot-cpn>
      我是普通文本
    </my-slot-cpn>

    <my-slot-cpn>
      <my-button></my-button>
    </my-slot-cpn>

    <!-- 插入很多的内容 -->
    <my-slot-cpn>
      <h2>pengfan hahaha</h2>
      <span>pengyutong heiehei</span>
      <i>我是i标签里面的文本</i>
    </my-slot-cpn>
  </div>
</template>

<script>
import MySlotCpn from "./MySoltCpn.vue";
import MyButton from "./MyButton.vue";
export default {
  components: {
    MySlotCpn,
    MyButton,
  },
};
</script>

<style scoped></style>
